import { request } from "@/utils/service"
import type * as quote from "./types/quote"

export function getListApi(params: quote.GetTableRequestData) {
  return request<any>({
    url: "/Quote/getList",
    method: "get",
    params
  })
}
export function getListByUidApi(params: quote.GetTablesRequestData) {
  return request<any>({
    url: "/Quote/getListByUid",
    method: "get",
    params
  })
}
export function getDetailApi(params: quote.GetDetailRequestData) {
  return request<any>({
    url: "/Quote/detail",
    method: "get",
    params
  })
}
export function getAmountApi(params: quote.GetAmountRequestData) {
  return request<any>({
    url: "/Quote/getAmount",
    method: "get",
    params
  })
}

export function getRoleAdminCountApi(params: quote.GetRoleAdminCountRequestData) {
  return request<quote.GetRoleAdminCountResponseData>({
    url: "/Quote/getRoleAdminCount",
    method: "get",
    params
  })
}
